//引入mockjs
import Mock from "mockjs";
//2.引入或加载需要响应的数据
//当将两个json文件中的数据引入进来，会将json格式自动转换成真正的数组或者对象
import bannerList from "./bannerList.json"
import floorsList from "./floorsList.json"
import axios from "axios";
// 3.定义接口服务器
Mock.mock("/mock/bannerList",{code:200,msg:'OK',data:bannerList});
Mock.mock("/mock/floorsList",{code:200,msg:'OK',data:floorsList})

//测试mock服务器中的数据
//  axios.get("/mock/bannerList").then(
//   val =>{console.log(val);}
// )
